<!DOCTYPE html>
<html lang="en">
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
<script src="../static/js/websoket.js" th:src="@{/js/websoket.js?v=3.0.0}"></script>
<head>
    <meta charset="UTF-8">
    <title>WebSocket</title>

</head>
<body>
<h3>hello socket</h3>
<p>【登录用户】：</p><div><input id="userName" name="userName" type="text" value=""></div>
<p>操作:</p><div> <button onclick="openSocket()">登录</button></div>
<p>【发送信息用户】：</p><div><input id="toUserName" name="toUserName" type="text" value=""></div>
<p>【发送内容】：</p><div><input id="contentText" name="contentText" type="text" value=""></div>
<p>【操作】：</p><div><button onclick="sendmsg()">发送消息</button></div>
<p>【信息记录】：</p><div><span id="showMsg"></span></div>
</body>
</html>